package com.wnxy.sddfp.trade.service;

import com.wnxy.sddfp.common.model.dto.trade.BorrowRecordDTO;
import com.wnxy.sddfp.common.model.page.Pages;
import com.wnxy.sddfp.common.model.query.BorrowQuery;
import com.wnxy.sddfp.common.model.vo.trade.BorrowRecordVo;
import com.wnxy.sddfp.trade.entity.BorrowRecord;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 借款信息表 服务类
 * </p>
 *
 * @author Jet
 * @since 2023-05-08
 */
public interface IBorrowRecordService extends IService<BorrowRecord> {

    /**
     * 借款申请
     * @param borrowRecordDTO
     */
    void addBorrowRecord(BorrowRecordDTO borrowRecordDTO);

    /**
     * 借款记录分页查询
     */
    Pages<BorrowRecordVo> queryBorrowRecord(BorrowQuery borrowQuery, Integer pageNum, Integer pageSize);

    /**
     * 借款审核接口
     * @param borrowRecordId
     * @param status
     */
    void verifyStatus(Long borrowRecordId, String status);
}
